//
//  LYDrawer.h
//  TestDrawer_--001
//
//  Created by 刘杨 on 15/9/8.
//  Copyright (c) 2015年 刘杨. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface LYDrawer : UIViewController

/**
 *  视图控制器（3个），左抽屉:leftViewController
 *                  右抽屉:rightViewController
 *                  主视图:mainViewController
 */
@property (nonatomic, strong, readwrite) UIViewController *leftViewController;
@property (nonatomic, strong, readwrite) UIViewController *rightViewController;
@property (nonatomic, strong, readwrite) UIViewController *mainViewController;

//公共属性
@property (nonatomic, assign, readwrite) BOOL isSwipeGesture; //default is YES
@property (nonatomic, assign, readwrite) CGFloat animationDuration; //default is 0.38
@property (nonatomic, assign, readwrite) CGFloat drawerWidth; //default is 180
@property (nonatomic, strong, readwrite) UIImage *leftBackgroudImage; //default is None
@property (nonatomic, strong, readwrite) UIImage *rightBackgroudImage; //default is None

//初始化方法
- (instancetype)initWithMainViewController:(UIViewController *)mainViewController leftViewController:(UIViewController *)leftViewController rightViewController:(UIViewController *)rightViewController;

//公共方法
//推出左右抽屉
- (void)presentLeftDrawerController;
- (void)presentRightDrawerController;
@end
